***************************************************
****----			Table A13	  		   ----****
***************************************************

clear all
cap log close 
set more off

****---- Change directory

global data "/Users/Replication material/Data"

****---- Analysis

use "$data/dataset_replication.dta", clear

global controls Capoluogodiprovincia  population_density_1911 expenditures_1912_PC surplus_tot_1912_PC exp_police_hygiene_1912_PC exp_just_secur_1912_PC  exp_edu_1912_PC exp_public_work_1912_PC share_literate share_literate_male share_literate_female share_male


qui reghdfe gini_log aug_dec_18_sd  $controls if regione!="abruzzi_molise", cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg11
qui reghdfe gini_log aug_dec_18_sd  $controls if regione!="basilicata", cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg12
qui reghdfe gini_log aug_dec_18_sd  $controls if regione!="calabria", cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg13
qui reghdfe gini_log aug_dec_18_sd  $controls if regione!="campania", cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg14
qui reghdfe gini_log aug_dec_18_sd  $controls if regione!="emilia", cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg15
qui reghdfe gini_log aug_dec_18_sd  $controls if regione!="liguria", cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg18
qui reghdfe gini_log aug_dec_18_sd  $controls if regione!="lombardia", cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg19
qui reghdfe gini_log aug_dec_18_sd  $controls if regione!="marche", cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg110
qui reghdfe gini_log aug_dec_18_sd  $controls if regione!="sardegna", cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg111
qui reghdfe gini_log aug_dec_18_sd  $controls if regione!="sicilia", cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg112
qui reghdfe gini_log aug_dec_18_sd  $controls if regione!="toscana", cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg113
qui reghdfe gini_log aug_dec_18_sd  $controls if regione!="umbria", cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg114
qui reghdfe gini_log aug_dec_18_sd  $controls if regione!="veneto", cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg115

esttab reg11 reg12 reg13 reg14 reg15 reg18 reg19, keep(aug_dec_18_sd) se r2 staraux collabels(, none) ml(,none) cells(b(star fmt (%9.3f)) se(par)) star(* 0.10 ** 0.05 *** 0.01) replace
esttab reg110 reg111 reg112 reg113 reg114 reg115, keep(aug_dec_18_sd) se r2 staraux collabels(, none) ml(,none) cells(b(star fmt (%9.3f)) se(par)) star(* 0.10 ** 0.05 *** 0.01) replace
